﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MINERP.COM;

namespace MINERP.Frontier
{
    public partial class FrmResumeBoardStatus : Form
    {
        public FrmResumeBoardStatus()
        {
            InitializeComponent();
        }

        private void FrmResumeBoardStatus_Load(object sender, EventArgs e)
        {
            cmbStatus.SelectedIndex = 0;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            if (cmbStatus.Text == "未打印")
            {
                ((FrmMain)this.Owner).ResumeStatus = (int)EnumBoardStatus.WaitingPrint;
            }
            else if (cmbStatus.Text == "打印完成")
            {
                ((FrmMain)this.Owner).ResumeStatus = (int)EnumBoardStatus.Printed;
            }
            this.Close();
        }
    }
}
